package com.wangyp.tower.tower.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wangyp.tower.model.tower.TowerInfo;
import com.wangyp.tower.vo.tower.TowerInfoQueryVo;
import org.springframework.stereotype.Service;

/**
 * @Author: Wangyp
 * @Date: 2021/4/25 11:25
 * @Description: *
 */
@Service
public interface TowerInfoService extends IService<TowerInfo>{

    /**
     * 分页查询
     * @param current
     * @param limit
     * @param towerInfoQueryVo
     * @return Page<TowerInfo>
     */
    Page<TowerInfo> findPageTowerInfo(long current, long limit, String name, TowerInfoQueryVo towerInfoQueryVo);

    /**
     * 分页查询启用铁塔
     * @param current
     * @param limit
     * @param towerInfoQueryVo
     * @return Page<TowerInfo>
     */
    Page<TowerInfo> findPageEnableTowerInfo(long current, long limit, TowerInfoQueryVo towerInfoQueryVo);

    /**
     * 分页未启用查询
     * @param current
     * @param limit
     * @param towerInfoQueryVo
     * @return Page<TowerInfo>
     */
    Page<TowerInfo> findPageNotEnableTowerInfo(long current, long limit, TowerInfoQueryVo towerInfoQueryVo);

    /**
     * 模糊查询铁塔(省份 地市 区县 产权方)
     * @param towerInfoQueryVo
     * @return
     */
    TowerInfo getByCountyCode(TowerInfoQueryVo towerInfoQueryVo);

    /**
     * 添加铁塔
     * @param towerInfo
     * @return
     */
    boolean addTowerInfo(TowerInfo towerInfo);
}
